package com.ys.override;

/**
 * 描述: 父类-手机类
 *
 * @author CodeYang
 * @version 2020/12/15 15:02
 */
public class Phone {

    /**
     * 姓名
     */
    private String name;
    /**
     * electricity : 电量
     */
    private String electricity;

    public Phone() {
    }

    public Phone(String name, String electricity) {
        this.name = name;
        this.electricity = electricity;
    }

    /**
     * 显示手机信息
     */
    public void show() {
        System.out.println("name = " + name);
        System.out.println("electricity = " + electricity);
    }

    /**
     * 父亲打工
     */
    public void test01() {
        System.out.println("父亲打工");
    }
}
